package com.zmj.mobile.process;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author lzy
 * @since 2023-12-01
 */
@Getter
@AllArgsConstructor
public enum AuditServiceEnum {

    SEAL_APPLY("sealApply", "sealAuditServiceImpl", "用印申请"),
    TECH_PUR_MAIN("techPurMain", "techPurAuditServiceImpl", "研发试制/采购申请"),
    QUOTE_ITEM_MAIN("quoteItemMain", "quoteAuditServiceImpl", "采购询比价/定价");

    private final String code;

    private final String serviceName;

    private final String msg;

    public static boolean contains(String code) {
        if (code == null) {
            return false;
        }
        for (AuditServiceEnum example : values()) {
            if (example.getCode().equals(code)) {
                return true;
            }
        }
        return false;
    }

    public static AuditServiceEnum getExample(String code) {
        if (code == null) {
            return null;
        }
        for (AuditServiceEnum example : values()) {
            if (example.getCode().equals(code)) {
                return example;
            }
        }
        return null;
    }
}
